<%@page pageEncoding="UTF-8" isELIgnored="false" session="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="f" uri="http://www.slim3.org/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<title>入退場一覧画面</title>
</head>
<script type="text/javascript">
<!--
	function nextView(val){
		var viewNo = document.getElementById("viewNo");
		viewNo.value = val;
		var form = document.getElementById("NyutaiRirekiItiran");
		form.submit();
	}
// -->
</script>
<body>
<form method="POST" name="NyutaiRirekiItiran" id="NyutaiRirekiItiran">
<input type="hidden" name="viewNo" id="viewNo"/>
<a name="top"></a>
<table border="0" width="760" align="center">
  <tr>
    <td width="130"><img border="0" src="img/armord_menosuke.png" width="106" height="135"></td>
    <td width="630">
        <img border="0" src="img/logo.png" width="166" height="33">
        <p><textarea name="MSG_TEXT_AREA" rows="3" cols="80" readonly ></textarea>
        </p>
      </td>
  </tr>
</table>
<BR>
<table border="0" width="760" bgcolor="#6666FF"  align="center">
  <tr>
    <td width="760"><b>入退場一覧情報</b></td>
  </tr>
</table>
<BR>
<table border="0" width="760"  align="center">
  <tr>
    <td width="10"></td>
    <td width="100"><b>現場</b></td>
    <td width="650">　
        <select size="1" width="500" name="SELECT_GENBA">
          <option value="">選択してください&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
          <c:forEach var="g" items="${genbaList}">
            <option value="${g.genbacode}">${g.genbaname}</option>
          </c:forEach>
        </select>
    </td>
  </tr>
  <tr>
    <td width="10"></td>
    <td width="100"><b>会社</b></td>
    <td width="650">　
        <select size="1" width="500" name="SELECT_COMPANY">
          <option value="">選択してください&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
          <c:forEach var="c" items="${companyList}">
            <option value="${c.kaisyacode}">${c.kaisyaname}</option>
          </c:forEach>
        </select>
    </td>
  </tr>
  <tr>
    <td width="10"></td>
    <td width="100"><b>作業者</b></td>
    <td width="650">　
        <select size="1" width="500" name="SELECT_SAGYOUSYA">
          	<option value="">選択してください&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
			<c:forEach var="s" items="${sagyosyaList}">
			<option value="${s.sagyousyaID}">${s.sei}${s.mei}</option>
			</c:forEach>
        </select>
    </td>
  </tr>
  <tr>
    <td width="10"></td>
    <td width="100"><b>期間</b></td>
    <td width="650">　<input type="radio" name="KBN" value="1" checked>入場日時　<input type="radio" name="KBN" value="2">退場日時

    </td>
  </tr>
  <tr>
    <td width="10"></td>
    <td width="100"></td>
    <td width="650">　<input type="text" name="TEXT_FROM_YEAR" size="4" maxlength=4 value="2011">年<input type="text" name="TEXT_FROM_MONTH" size="2" maxlength=2 value="10">月<input type="text" name="TEXT_FROM_DAY" size="2" maxlength=2 value="30">日　<input type="text" name="TEXT_FROM_HOUR" size="2" maxlength=2 value="">時　～　<input type="text" name="TEXT_TO_YEAR" size="4" maxlength=4 value="2011">年<input type="text" name="TEXT_TO_MONTH" size="2" maxlength=2 value="10">月<input type="text" name="TEXT_TO_DAY" size="2" maxlength=2 value="30">日　<input type="text" name="TEXT_TO_HOUR" size="2" maxlength=2 value="">時
    </td>
  </tr>
</table>
<table border="0" width="760"  align="center">
  <tr>
    <td width="10"></td>
    <td width="400"></td>
    <td width="50"><input type="submit" value="検 索" name="SERCH"></td>
    <td width="200"><input type="reset" value="クリア" name="CLEAR">
    </td>
  </tr>
</table>

<BR>
<table border="0" width="760" align="center">
  <tr>
    <td width="300" align="center" height="16" bgcolor="#339933">会社名</td>
    <td width="300" align="center" height="16" bgcolor="#339933">作業者氏名</td>
    <td width="130" align="center" height="16" bgcolor="#339933">入場日時</td>
    <td width="130" align="center" height="16" bgcolor="#339933">退場日時</td>
  </tr>
  <c:forEach var="e" items="${rirekiList}">
  <tr>
    <td width="300" align="center" height="16" bgcolor="#ccffcc">${f:h(e.kaisyaname)}</td>
    <td width="300" align="center" height="16" bgcolor="#ccffcc">${f:h(e.sagyousyaname)}</td>
    <td width="130" align="center" height="16" bgcolor="#ccffcc">
    	    <fmt:formatDate value="${e.nyutaijotime}" pattern="yyyy/MM/dd HH:mm:ss" />
    </td>
    <td width="130" align="center" height="16" bgcolor="#ccffcc">
    	    <fmt:formatDate value="${e.taijotime}" pattern="yyyy/MM/dd HH:mm:ss" />
    </td>
  </tr>
  </c:forEach>
</table>
<table border="0" width="760" height="50px" align="center">
<tr><td>
<a href="#" onClick="nextView(1);">TOPへ戻る</a>
</td></tr>
</table>
</form>
</body>

</html>

